package cate.game.role.res.leader.hallows.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBRole;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "圣器设置副圣器的请求")
public class HallowsSetDeputyReq implements MsgInput {
    @NoteField(value = "圣器类型")
    public int type;

    @NoteField(value = "副圣器类型")
    public int deputyType;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getRes().leader.hallows.setDeputyHallow(type, deputyType);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBRole.HALLOWS_SET_DEPUTY_REQ;
    }
}

